package com.ts.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ExceptionEnum {
    USERNAME_EXISTS(400001, "用户名已存在"),
    EMAIL_EXISTS(400002, "用户邮箱已存在"),
    EMAIL_NOT_EXISTS(400003, "邮箱不存在，请输入正确的邮箱"),
    ACTIVATION_CODE_INVALID(400004, "激活码错误"),
    ACTIVATION_TIME_OUT(400005, "重置密码连接已失效，请重新发送"),
    EMAIL_ACTIVED(400006, "邮箱已经激活过了"),
    NOT_ACTIVED(400007, "账户未激活，请先激活"),
    PASSWORD_WRONG(400008, "密码错误"),
    PASSWORD_EXISTS(400009, "请更换未使用过的新密码"),
    POST_FIELD_EMPTY(400010, "帖子标题或内容不能为空"),
    SENSITIVE_COMMENT(400011, "发帖内容涉及相关敏感词汇!!!!!"),
    NOT_LOGIN(401001, "请先登录");
    private Integer code;
    private String msg;
}
